home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 1 / PC Actual CD 01.iso / share / dos / graficos / plydat14.arj / ZTC.MAK < prev   
Encoding:
Makefile  |  1992-03-29  |  2.3 KB  |  93 lines

  1. #
  2. # Makefile for NFF stuff using Zortech C++.
  3. #
  4. # The typical command line to build an executable is:
  5. #
  6. #    make -f ztc.mak balls.exe
  7. #
  8. # If you have a different compiler, just note the meaning of the
  9. # various flags and set appropriately.
  10. #
  11.  
  12. #
  13. # Use these definitions with Zortech C
  14. #
  15. CC    =ztc
  16. #
  17. # Memory model switches for real mode and protected mode
  18. #
  19. #  l    Flag for real mode large model
  20. #  z    Flag for 286 protected mode
  21. #
  22. MDL    =l
  23. #MDL    =z
  24. #
  25. # Link options
  26. #
  27. # /M     Generates a map file
  28. # /F     Farcall (register based parameter passing)
  29. # /PACKC Packs the execuatble code
  30. # /CO    Generates a CodeView debugger compatible executable
  31. #
  32. LINK    =blink /M /F /PACKC
  33. #LINK    =blink /M /CO
  34. #
  35. # Compiler switches
  36. #
  37. # -A     Enforces ANSI C
  38. # -r     Enforces function prototyping
  39. # -2     Generates 80286 specific code
  40. # -f     Generates inline 80x87 code
  41. # -s     Generates stack checking code
  42. # -g     Generates debugging code (not useful in the protected model)
  43. # -DZTC  Tells Polyray that the compiler being used is Zortech
  44. # -o     Turns on optimization
  45. # -br    Uses protected mode versions of the compiler components
  46. #        (A couple of the files need this: height.c, polynom.c, ytab.c)
  47. #
  48. CFLAGS    =-m$(MDL) -2 -f -A -r -DZTC
  49. OPTFLG    =-o
  50. PROTCC    =-br
  51. #
  52. # Link response files for real mode and protected mode
  53. #
  54. #LINKFILE = ztc.lnk
  55. LINKFILE = ztcp.lnk
  56.  
  57. # Rule to compile c progs into obj's
  58. .c.obj:
  59.     $(CC) $(CFLAGS) -c $<
  60.  
  61. lib.obj: lib.c lib.h
  62.  
  63. balls.exe: lib.obj balls.obj
  64.    $(CC) $(CFLAGS) -oballs balls.obj lib.obj
  65.  
  66. coil.exe: lib.obj coil.obj
  67.    $(CC) $(CFLAGS) -ocoil coil.obj lib.obj
  68.  
  69. gears.exe: lib.obj gears.obj
  70.    $(CC) $(CFLAGS) -ogears gears.obj lib.obj
  71.  
  72. hilbert.exe: lib.obj hilbert.obj
  73.    $(CC) $(CFLAGS) -ohilbert hilbert.obj lib.obj
  74.  
  75. mountain.exe: lib.obj mountain.obj
  76.    $(CC) $(CFLAGS) -omountain mountain.obj lib.obj
  77.  
  78. rings.exe: lib.obj rings.obj
  79.    $(CC) $(CFLAGS) -orings rings.obj lib.obj
  80.  
  81. sphcoil.exe: lib.obj sphcoil.obj
  82.    $(CC) $(CFLAGS) -osphcoil sphcoil.obj lib.obj
  83.  
  84. tetra.exe: lib.obj tetra.obj
  85.    $(CC) $(CFLAGS) -otetra tetra.obj lib.obj
  86.  
  87. tree.exe: lib.obj tree.obj
  88.    $(CC) $(CFLAGS) -otree tree.obj lib.obj
  89.  
  90. twistwir.exe: lib.obj twistwir.obj
  91.    $(CC) $(CFLAGS) -otwistwir twistwir.obj lib.obj
  92.  
  93.